package com.gzy.action;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 郭梓炀
 * @since 2022-05-03
 */
@RequestMapping("/user")
@RestController
public class UserController {

    @RequestMapping("loginOK")
    public Map loginOK(){
        Map map = new HashMap();
        map.put("status", "OK");
        return map;
    }

    @RequestMapping("loginNG")
    public Map loginNG(){
        Map map = new HashMap();
        map.put("status", "NG");
        return map;
    }

}
